<?
$page_title="Sevadhari Registration Information - <span style='font-size:14px;'>(one time registration)</span> ";
$mindex=4;
$profile_menu=1;
?>
<? include("includes/header.php") ?>
<?
$memberId=getMemberId();
if($memberId==0) kickOut();
$member=getMemberInfo($memberId);

?>

<div class="break"></div>
<?if(!(int)$_SESSION["member_id"]>0) {?>
<p><b>You need to be a registered member before applying for the Sevadhari. Please <a class="stdlink" href="register.php">click here</a> to register now.</b></p>
<p><b>If you are already a Registered Member and would like to register for Sevadhari then <a class="stdlink" href="login.php?mode=2">Sign in</a> to proceed. </b></p>
<? }else{ ?>
<p>
Please fill-in the following form and press the "Submit" button to register as a Sevadhari in the <br/>"Brahma Kumaris - IT & Communications" Department.
</p>
<div class="break"></div>
<form action="sevaregister_pro.php" method="post" name="frmSevaReg" id="frmSevaReg" onsubmit="return validateForm(this,0)" >

  <table id="Regform" border="0" cellspacing="3" cellpadding="2" width="99%">

    <tbody>
      <tr><td colspan="2" class="section_head">Member Information</td></tr>
      <tr>
        <td class="frmLabel">Full Name&nbsp;</td>
        <td>
        <?=$member["full_name"]?>
        </td>

      </tr>
       <tr>
        <td class="frmLabel">Registered Since &nbsp;</td>
        <td>
          <?=$member["submission_date"]?>
        </td>

      </tr>
	<tr><td colspan="2" class="section_head">Seva Information</td></tr>

  	<tr>
        <td class="frmLabel" colspan="2">I am interested in doing Seva in yagya because, <?=ast()?>
	<textarea rows="4" cols="95" class="txtarea" name="reg_seva_interest"><?=$member["reg_seva_interest"]?></textarea>
	</td>
        

      </tr>

	<tr>
		<td class="frmLabel"  colspan="2">Your Speciality in relation to Seva <?=ast()?><br/><textarea name="reg_speciality_seva" rows="2" cols="95" class="txtarea"><?=$member["reg_speciality_seva"]?></textarea></td>
		
	</tr>

	<tr>
		<td class="frmLabel">Centre Incharge Name <?=ast()?></td>
		<td> <input  class="txtbox" name="center_incharge_name" value="<?=$member["center_incharge_name"]?>" id="center_incharge_name" size="37" type="text"/></td>
	</tr>
	<tr>
		<td class="frmLabel">Centre Incharge Email <?=ast()?></td>
		<td> <input  class="txtbox" name="center_incharge_email" value="<?=$member["center_incharge_email"]?>" id="center_incharge_email" size="37"  type="text"/></td>
	</tr>
	<tr>
		<td class="frmLabel">Centre Incharge Phone <?=ast()?></td>
		<td> <input  class="txtbox" name="center_incharge_phone" value="<?=$member["center_incharge_phone"]?>" id="center_incharge_phone" size="37"  type="text"/></td>
	</tr>

	
</table>
<br/>
<div class="fright" >
<input type="submit" value="Save Registration Information" class="button" onclick="frmSevaReg.hmode.value=0;"/>
<input type="submit" value="Save & Proceed to New Seva Request" class="button"  onclick="frmSevaReg.hmode.value=1;"/>
<input type="hidden" name="hmode" value="0"/>
<input type="hidden" name="reg_seva" value="1"/>
</div>
<br/>
</form>
<div class="cleardiv"></div>
<hr color="#f2f2f2"/>
<div class="cleardiv"></div>

<p class="bold">Please Note :</p>
<p>1.This is a part of Membership registration. Once submitted you  can then apply for doing periodical Seva in the IT department.</p>
<p>2.Your Centre-in-Charge must write a letter giving you permission to do seva addressed to Yashwant bhai, IT.C Team Coordinator, India.  Unfortunately, IT.C is unable to offer seva to you without it.  Please specify your name, request for accommodation & duration of stay.</p>


<? } ?>
<script type="text/javascript">
function validateForm(vForm,vMode){


var msg="Please correct the errors:\n\n";
var eMode=0;

if(vForm.reg_seva_interest.value==""){
eMode=1;msg +=" Seva Interest field cannot be empty.\n\n";
}
if(vForm.reg_speciality_seva.value==""){
eMode=1;msg +=" Please fill in any speciality in realtion to Seva.\n\n";
}
if(vForm.center_incharge_name.value==""){
eMode=1;msg +=" Centre Incharge Name field cannot be empty.\n\n";
}
if(vForm.center_incharge_email.value==""){
eMode=1;msg +=" Centre Incharge Email cannot be empty.\n\n";
}
if(vForm.center_incharge_phone.value==""){
eMode=1;msg +=" Centre Incharge Phone cannot be empty.\n\n";
}


if(eMode==1){
alert(msg);
return false;

}



}

</script>

<? include("includes/footer.php") ?>